package com.java0108;

public class Thread03 {
    public static void main(String[] args) {
        M m = new M();
        m.start();
        M m1 = new M();
        m1.start();

    }
}
class M extends Thread{
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName());
        }
    }
}